package com.goldgov.conference.service;

import java.text.ParseException;
import java.text.SimpleDateFormat;
import java.util.Calendar;
import java.util.Date;
import java.util.List;

/**
 * 会议记录bean
 * @ClassName: Conference 
 */
public class Conference {
	
	private String conferenceID;	//会议记录id
	private String userID;		//发布人
	private String userName;	//发布人姓名	
	private String publishDate;		//发布时间
	private String conferenceType;	//会议类型 1:支部党员大会 2:党课 3:党小组会 4:支部委员会
	private String conferenceBeginDate;//会议开始时间
	private String beginDateMobile;	//会议开始时间
	
	private String conferenceEndDate;  //会议结束时间
	private String conferenceSite;	 //会议地点
	private String conferenceName;	//会议名称
	private String conferencePresentation;	//会议介绍CONFERENCE_PRESENTATION
	private String isSend;			//是否发送通知 1是 2否
	private String createDate;		//创建时间
	private Integer activeState;	//活跃状态
	private String compere;			//主持人
	private String year;			//年度
	private Integer quarter;		//季度
	private Integer meetingStatus; //会议状态 0：会议进行 1：会议完成 2会议未开始
	private String lastModifiedDate;//最后操作时间
	private Integer publishState;	//发布状态
	private String defaultImageId;  //会议图片
	private String organizationId;	//会议关联的组织结构id
	private String organizationName;//会议关联的组织机构名称
	
	private Integer headNum;		//参加会议的总人数
	private Integer yqNum;			//已签人数
	private Integer wqNum;			//未签人数
	private Integer qjNum;			//请假人数
	private Integer attNum;			//附件数量
	private Integer userStatus;			//当前登录用户在会议中的状态 0已参加 1请假2缺席,3未参加
	private Integer userJoinStatus; //用户参加状态
	private String[] conferenceTypes; //会议类型集合
	private String[] userIDs;		//参与人ids
	
	private List<ConferenceUser> conferenceUserList;//当前会议所关联的人员
	private List<ConferenceUser> qjList;//请假人员列表
	private List<ConferenceUser> qxList;//缺席人员列表
	private List<ConferenceUser> qdList;//签到人员列表
	private List fileList;
	
	public List<ConferenceUser> getQdList() {
		return qdList;
	}
	public void setQdList(List<ConferenceUser> qdList) {
		this.qdList = qdList;
	}
	public List<ConferenceUser> getQjList() {
		return qjList;
	}
	public void setQjList(List<ConferenceUser> qjList) {
		this.qjList = qjList;
	}
	public List<ConferenceUser> getQxList() {
		return qxList;
	}
	public void setQxList(List<ConferenceUser> qxList) {
		this.qxList = qxList;
	}
	public String getConferenceID() {
		return conferenceID;
	}
	public void setConferenceID(String conferenceID) {
		this.conferenceID = conferenceID;
	}
	public String getUserID() {
		return userID;
	}
	public void setUserID(String userID) {
		this.userID = userID;
	}
	public String getUserName() {
		return userName;
	}
	public void setUserName(String userName) {
		this.userName = userName;
	}
	public String getPublishDate() {
		return publishDate;
	}
	public void setPublishDate(String publishDate) {
		this.publishDate = publishDate;
	}
	public String getConferenceType() {
		return conferenceType;
	}
	public void setConferenceType(String conferenceType) {
		this.conferenceType = conferenceType;
	}
	public String getConferenceBeginDate() {
		return conferenceBeginDate;
	}
	public void setConferenceBeginDate(String conferenceBeginDate) {
		this.conferenceBeginDate = conferenceBeginDate;
	}
	public String getConferenceEndDate() {
		return conferenceEndDate;
	}
	public void setConferenceEndDate(String conferenceEndDate) {
		this.conferenceEndDate = conferenceEndDate;
	}
	public String getConferenceSite() {
		return conferenceSite;
	}
	public void setConferenceSite(String conferenceSite) {
		this.conferenceSite = conferenceSite;
	}
	public String getConferenceName() {
		return conferenceName;
	}
	public void setConferenceName(String conferenceName) {
		this.conferenceName = conferenceName;
	}
	public String getConferencePresentation() {
		return conferencePresentation;
	}
	public void setConferencePresentation(String conferencePresentation) {
		this.conferencePresentation = conferencePresentation;
	}
	public String getIsSend() {
		return isSend;
	}
	public void setIsSend(String isSend) {
		this.isSend = isSend;
	}
	public String getCreateDate() {
		return createDate;
	}
	public void setCreateDate(String createDate) {
		this.createDate = createDate;
	}
	public Integer getActiveState() {
		return activeState;
	}
	public void setActiveState(Integer activeState) {
		this.activeState = activeState;
	}
	public String getCompere() {
		return compere;
	}
	public void setCompere(String compere) {
		this.compere = compere;
	}
	public String getYear() {
		return year;
	}
	public void setYear(String year) {
		this.year = year;
	}
	public Integer getQuarter() {
		return quarter;
	}
	public void setQuarter(Integer quarter) {
		this.quarter = quarter;
	}
	public Integer getMeetingStatus() {
		return meetingStatus;
	}
	public void setMeetingStatus(Integer meetingStatus) {
		this.meetingStatus = meetingStatus;
	}
	public String getLastModifiedDate() {
		return lastModifiedDate;
	}
	public void setLastModifiedDate(String lastModifiedDate) {
		this.lastModifiedDate = lastModifiedDate;
	}
	
	public Integer getHeadNum() {
		return headNum;
	}
	public void setHeadNum(Integer headNum) {
		this.headNum = headNum;
	}
	public Integer getYqNum() {
		return yqNum;
	}
	public void setYqNum(Integer yqNum) {
		this.yqNum = yqNum;
	}
	public Integer getWqNum() {
		if(null != headNum && headNum > 0) {
			wqNum = headNum-yqNum-qjNum;
		}
		if (wqNum == null) {
			wqNum = 0;
		}
		return wqNum;
	}
	public void setWqNum(Integer wqNum) {
		this.wqNum = wqNum;
	}
	public Integer getQjNum() {
		return qjNum;
	}
	public void setQjNum(Integer qjNum) {
		this.qjNum = qjNum;
	}
	public List<ConferenceUser> getConferenceUserList() {
		return conferenceUserList;
	}
	public void setConferenceUserList(List<ConferenceUser> conferenceUserList) {
		this.conferenceUserList = conferenceUserList;
	}
	public Integer getAttNum() {
		return attNum;
	}
	public void setAttNum(Integer attNum) {
		this.attNum = attNum;
	}
	public Integer getUserStatus() {
		return userStatus;
	}
	public void setUserStatus(Integer userStatus) {
		this.userStatus = userStatus;
	}
	public String[] getConferenceTypes() {
		return conferenceTypes;
	}
	public void setConferenceTypes(String[] conferenceTypes) {
		this.conferenceTypes = conferenceTypes;
	}
	public Integer getPublishState() {
		return publishState;
	}
	public void setPublishState(Integer publishState) {
		this.publishState = publishState;
	}
	public String[] getUserIDs() {
		return userIDs;
	}
	public void setUserIDs(String[] userIDs) {
		this.userIDs = userIDs;
	}
	public String getDefaultImageId() {
		return defaultImageId;
	}
	public void setDefaultImageId(String defaultImageId) {
		this.defaultImageId = defaultImageId;
	}
	public List getFileList() {
		return fileList;
	}
	public void setFileList(List fileList) {
		this.fileList = fileList;
	}
	public Integer getUserJoinStatus() {
		return userJoinStatus;
	}
	public void setUserJoinStatus(Integer userJoinStatus) {
		this.userJoinStatus = userJoinStatus;
	}
	public String getBeginDateMobile() {
		if (this.getConferenceBeginDate() != null) {
			SimpleDateFormat sdf = new SimpleDateFormat("yyyy年MM月dd日 HH:mm");
			try {
				String str = this.getConferenceBeginDate();
				int strIndex = str.indexOf(".");
				if (strIndex != -1) {
					str = str.substring(0,strIndex);
				}
				Date date = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").parse(str);
				beginDateMobile = sdf.format(date);
			} catch (ParseException e) {
				e.printStackTrace();
			}
		}
		return beginDateMobile;
	}
	public void setBeginDateMobile(String beginDateMobile) {
		this.beginDateMobile = beginDateMobile;
	}
	public String getOrganizationId() {
		return organizationId;
	}
	public void setOrganizationId(String organizationId) {
		this.organizationId = organizationId;
	}
	public String getOrganizationName() {
		return organizationName;
	}
	public void setOrganizationName(String organizationName) {
		this.organizationName = organizationName;
	}
	
}
